<div class="search-side">

	<div class="side-title">
		精品推荐
	</div>
<?php foreach($bests as $k=>$v):?>
<?php
			$imgs = explode(',',$v['goods_img']);
			$good_imgfile = pathinfo($imgs[0]);
			$filename =$good_imgfile["filename"].'_thumb'.'.';
			$img_name =$filename.$good_imgfile["extension"];
									
?>
	<li>
	<a href="<?php echo base_url(),'goods/index?id=',$v['goods_id'];?>">
		<div class="i-pic check">
			<img src="<?php echo base_url(),'public/uploads/goods_thumb/',$img_name;?>" />
			<p class="check-title"><?php if(mb_strlen($v['goods_name']) >8):?><?php echo mb_substr($v['goods_name'],0,8),'......';?><?php else:?><?php echo $v['goods_name'];?><?php endif;?></p>
			<p class="price fl">
				<b>¥</b>
				<strong><?php echo $v['shop_price'];?></strong>
			</p>
			<p class="number fl">
				销量<span><?php echo $v['sales_num'];?></span>
			</p>
		</div>
	</a>
	</li>
<?php endforeach;?>

</div>